<include file="Tpl/mobile/Public/admin_top.html">
<div class="panel panel-default table-responsive">
 <div class="panel-heading">所有插件</div>
	<table class="table">
		<tr>
			<th>名称</th>
			<th>版本号、作者</th>
			<th>描述</th>
			<th>操作</th>
		</tr>
<?php
 if(!empty($this->array_array['plu_arr'])){
 	foreach($this->array_array['plu_arr'] as $vo){
 		$class_name=substr($vo,0,strlen($vo)-4);
?>
			<tr>	
				<td>
					<?php
					echo $class_name;
				?>
				</td>
				<td>
					<?php
					echo w($class_name)->desc()->version." (".w($class_name)->desc()->author.")";
				?>
				</td>
				<td>
					<?php
					echo w($class_name)->desc()->description;
				?>
				</td>
				<td>
					<?php
					if(in_array($class_name,$this->array_array['plu_in_arr'])){
					?>
					<a style="color:#222;font-size:12px;font-family:Tahoma;font-weight:bold" href="__APP__/Widget{url}setUnActive{url}name{url}<?php echo $class_name ?>{shtml}?token={token}" onclick="return confirm('您确定要停用?');">停用</a>
					<?php if($this->is_exist_widget("PluginClearWidget") && $this->is_active_widget("PluginClearWidget")){
									echo w("PluginClearWidget")->uninstallShow($class_name);
							}	?>
					<?php	}else{ ?>
					<a style="color:#222;font-size:12px;font-family:Tahoma;font-weight:bold" href="__APP__/Widget{url}setActive{url}name{url}<?php echo $class_name ?>{shtml}?token={token}" onclick="return confirm('您确定要激活?');">激活</a>
				<?php	} ?>
				</td>
			</tr>
<?php
	}
}
?>
	</table>
 </div>
<include file="Tpl/mobile/Public/admin_bottom.html">